package ooday02test02;

public class AnimalTeat {
    public static void main(String[] args) {
        Dog dog=new Dog("旺财",3,"白");
        dog.drink();
        dog.eat();
        dog.lookHome();
        System.out.println("------------------------");
        Dog dog1=new Dog("旺财1",1,"黑");
        dog1.drink();
        dog1.eat();
        dog1.lookHome();
        System.out.println("------------------------");
        Dog dog2=new Dog("旺财2",8,"金");
        System.out.println(dog2.name);
        dog2.drink();
        dog2.eat();
        dog2.lookHome();
        System.out.println("------------------------");

        //
        Chick chick=new Chick("小鸡",1,"白");
        chick.drink();
        chick.eat();
        chick.layEggs();
        System.out.println("------------------------");
        Chick chick1=new Chick("小鸡1",2,"红");
        chick1.drink();
        chick1.eat();
        chick1.layEggs();
        System.out.println("------------------------");
        Chick chick2=new Chick("小鸡2",3,"黑");
        chick2.drink();
        chick2.eat();
        chick2.layEggs();
        System.out.println("------------------------");


        //
        Fish fish=new Fish("小鱼",1,"白");
        fish.drink();
        fish.eat();
        System.out.println("------------------------");
        Fish fish1=new Fish("小鱼1",3,"蓝");
        fish1.drink();
        fish1.eat();
        System.out.println("------------------------");

        int a2=5;
        int a3=++a2;
        int a4=a2++;
        System.out.println(a4);
        int a5[]=new int[5];
        int n=a5.length;
        System.out.println(n);
        int x=0;
        int count=0;
        while (x++<2){
            count+=x;
        }
        System.out.println(count);
        int x1=0,y1=0;
        do {
            if (x1%3==0){
                x1++;
                continue;
            }
            x1++;
            y1=y1+x1;
        }while (x1<4);
        System.out.println(y1);
    }
}
